package com.example.module.custom.bean;

import java.util.List;

/**
 * @name BlockDemo
 * @class name：com.nand.module.function.bean
 * @classdescribe  pqc列表实体类
 * @anthor ljp
 * @time 2020/1/6 16:56
 */
public class PQCListBean {
    /**
     * msg : 请求成功!
     * code : 200
     * dataInfo : {"dataList":[{"productID":"3","productionStage":4,"partId":"Pack-004","reviewResult":1,"createdTime":"2020-01-08 17:17:33","oid":"3","userName":"头发","checkID":"PQC_I123","processContent":"","checkResult":0,"partName":"Pack产品Ⅳ型"},{"productID":"2","productionStage":3,"partId":"Pack-003","reviewResult":1,"createdTime":"2020-01-08 17:17:32","oid":"2","userName":"头发","checkID":"PQC_I123","processContent":"","checkResult":0,"partName":"Pack产品Ⅲ型"},{"productID":"1","productionStage":2,"partId":"Pack-002","reviewResult":2,"createdTime":"2020-01-08 17:17:31","oid":"1","userName":"头发","checkID":"PQC_I123","processContent":"","checkResult":1,"partName":"Pack产品Ⅱ型"}]}
     */
        private List<DataListBean> dataList;

        public List<DataListBean> getDataList() {
            return dataList;
        }

        public void setDataList(List<DataListBean> dataList) {
            this.dataList = dataList;
        }

        public static class DataListBean {
            /**
             * productID : 3
             * productionStage : 4
             * partId : Pack-004
             * reviewResult : 1
             * createdTime : 2020-01-08 17:17:33
             * oid : 3
             * userName : 头发
             * checkID : PQC_I123
             * processContent :
             * checkResult : 0
             * partName : Pack产品Ⅳ型
             */

            private String productID;//产品ID
            private int productionStage;//生产阶段 0电芯 1模组 2PACK
            private String partId;//物料编码
            private int reviewResult;//复查结果 0合格1不合格 2未复查
            private String createdTime;//创建时间
            private String oid;//pqc oid
            private String userName;//用户名称
            private String checkID;//检查单号,PQC单据
            private String processContent;//工序名称
            private int checkResult;//检查结果 0合格1不合格
            private String partName;//物料名称

            private String wipBatch;//在制品编码

            private String productionStageName;//生产阶段 0电芯 1模组 2PACK

            public String getProductionStageName() {
                switch (productionStage){//生产阶段 0电芯 1模组 2PACK
                    case 0:
                        productionStageName = "电芯";
                        break;
                    case 1:
                        productionStageName = "模组";
                        break;
                    case 2:
                        productionStageName = "PACK";
                        break;
                }
                return productionStageName;
            }

            public void setProductionStageName(String productionStageName) {
                this.productionStageName = productionStageName;
            }

            public String getWipBatch() {
                return wipBatch;
            }

            public void setWipBatch(String wipBatch) {
                this.wipBatch = wipBatch;
            }

            public String getProductID() {
                return productID;
            }

            public void setProductID(String productID) {
                this.productID = productID;
            }

            public int getProductionStage() {
                return productionStage;
            }

            public void setProductionStage(int productionStage) {
                this.productionStage = productionStage;
            }

            public String getPartId() {
                return partId;
            }

            public void setPartId(String partId) {
                this.partId = partId;
            }

            public int getReviewResult() {
                return reviewResult;
            }

            public void setReviewResult(int reviewResult) {
                this.reviewResult = reviewResult;
            }

            public String getCreatedTime() {
                return createdTime;
            }

            public void setCreatedTime(String createdTime) {
                this.createdTime = createdTime;
            }

            public String getOid() {
                return oid;
            }

            public void setOid(String oid) {
                this.oid = oid;
            }

            public String getUserName() {
                return userName;
            }

            public void setUserName(String userName) {
                this.userName = userName;
            }

            public String getCheckID() {
                return checkID;
            }

            public void setCheckID(String checkID) {
                this.checkID = checkID;
            }

            public String getProcessContent() {
                return processContent;
            }

            public void setProcessContent(String processContent) {
                this.processContent = processContent;
            }

            public int getCheckResult() {
                return checkResult;
            }

            public void setCheckResult(int checkResult) {
                this.checkResult = checkResult;
            }

            public String getPartName() {
                return partName;
            }

            public void setPartName(String partName) {
                this.partName = partName;
            }

            @Override
            public String toString() {
                return "DataListBean{" +
                        "productID='" + productID + '\'' +
                        ", productionStage=" + productionStage +
                        ", partId='" + partId + '\'' +
                        ", reviewResult=" + reviewResult +
                        ", createdTime='" + createdTime + '\'' +
                        ", oid='" + oid + '\'' +
                        ", userName='" + userName + '\'' +
                        ", checkID='" + checkID + '\'' +
                        ", processContent='" + processContent + '\'' +
                        ", checkResult=" + checkResult +
                        ", partName='" + partName + '\'' +
                        '}';
            }
        }

}
